<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>环境对象统一标识平台</title>
    <link rel='stylesheet' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css'>
    <link href="css/login-style.css" rel="stylesheet" media="screen">
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-offset-3 col-md-6">
            <form class="form-horizontal">
                <span class="heading">环境对象统一标识平台用户登录</span>

                <div class="form-group">
                    <input type="text" class="form-control" id="username_txt" placeholder="用户名或电子邮件">
                    <i class="fa fa-user"></i>
                </div>
                <div class="form-group help">
                    <input type="password" class="form-control" id="pwd_txt" placeholder="密　码">
                    <i class="fa fa-lock"></i>
                    <a href="#" class="fa fa-question-circle"></a>
                </div>
                <div class="form-group">
                    <div class="main-checkbox">
                        <input type="checkbox" value="None" id="checkbox1" name="check"/>
                        <label for="checkbox1"></label>
                    </div>
                    <span class="text">Remember me</span>
                    <a href="wizard.html" class="text text-info">
                        登录
                        <!--<button id="submit" class="btn btn-default">登录</button>-->
                    </a>
                </div>
            </form>
        </div>
    </div>
</div>

<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<!--<script src="js/main.js"></script>-->
<script src="/socket.io/socket.io.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $("#submit").click(function(){
            var username_input = document.getElementById("username_txt").value;
            var pwd_input = document.getElementById("pwd_txt").value;
            console.log(username_input);
            console.log(pwd_input);
            window.location.href = '/wizard.html';
        });
    });
    document.onkeydown = function (ev) {
        if (ev.key === 'Enter') {
            var username_input = document.getElementById("username_txt").value;
            var pwd_input = document.getElementById("pwd_txt").value;
            console.log(username_input);
            console.log(pwd_input);
            if (username_input === "admin" && pwd_input === "123456") {
                window.location.href = '/wizard.html'
            }
        }
    }
</script>
</body>
</html>